package org.jeecg.modules.demo.baseselforder.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.baseselforder.entity.BaseSelfOrder;
import org.jeecg.modules.demo.baseselforder.mapper.BaseSelfOrderMapper;
import org.jeecg.modules.demo.baseselforder.service.IBaseSelfOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Description: 自提订单
 * @Author: jeecg-boot
 * @Date: 2022-01-27
 * @Version: V1.0
 */
@Service
public class BaseSelfOrderServiceImpl extends ServiceImpl<BaseSelfOrderMapper, BaseSelfOrder> implements IBaseSelfOrderService {

    @Autowired
    private BaseSelfOrderMapper baseSelfOrderMapper;

    @Override
    public IPage<Map<String, Object>> listSelfOrder(Page<Map<String, Object>> page, String storeId, String memberName
            , String orderCode, String memberPhone, String startDate, String endDate, String status) {

        return baseSelfOrderMapper.listSelfOrder(page, storeId, memberName, orderCode, memberPhone, startDate, endDate, status);
    }

    @Override
    public IPage<Map<String, Object>> listSelfOrder2(Page<Map<String, Object>> page, String storeId, String memberName
            , String orderCode, String memberPhone, String startDate, String endDate, String status) {

        return baseSelfOrderMapper.listSelfOrder2(page, storeId, memberName, orderCode, memberPhone, startDate, endDate, status);
    }

}
